 
FROM       ubuntu:latest
MAINTAINER Hui <Huiqiang.yang@gmail.com>

# install node.js
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
RUN apt-get install -y nodejs

# install yeoman bower grunt gulp
RUN npm install -g yo bower grunt-cli gulp

# configure the "hui" user
RUN groupadd hui && useradd hui -s /bin/bash -m -g hui -G hui && adduser hui sudo
RUN echo 'hui:hui' |chpasswd
RUN mkdir -p /home/hui/app
RUN cd /home && chown -R hui:hui /home/hui

ADD banner.txt /home/hui/banner.txt

# clean
RUN apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache
# workdir
WORKDIR /hui/home/app    

# volume 
VOLUME ["/home/hui/app"] 

VOLUME ["/home/hui/app"]
EXPOSE 8080 80 81


CMD    ["tail","-f","/home/hui/banner.txt"]
